package com.niiwoo.civet.trade.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by zhangwanli on 2017/12/15.
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class BatchInvestFinishedMsg implements Serializable {
    private static final long serialVersionUID = 3608838869092598162L;

    private String userId;
    private List<Entry> entryList = new ArrayList<>();
    private Date investTime;

    @Setter
    @Getter
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Entry implements Serializable {
        private static final long serialVersionUID = -2884143233913608040L;

        private Long investOrderId;
        private Long projectId;
        private Byte projectType;
        private BigDecimal investAmount;
        private Byte repaymentType;
        private BigDecimal yearRate;
        private Integer deadline;
        private Byte deadlineUnit;
    }

}
